class Comment < ActiveRecord::Base
  set_primary_key "comment_id"
  
  belongs_to :user,
             :class_name => "User",
             :foreign_key => "user_id"
  
  belongs_to :picture,
             :class_name => "Picture",
             :foreign_key => "picture_id"
  
  validates_presence_of :comment
end
